import axios from '../model/axios'


export const menuQuery = (params: any) => {
    return axios({
      method: 'get',
      url: '/api/menu/query',
      params
    })
  }

  export const menuAdd = (data: any) => {
    return axios({
      method: 'post',
      url: '/api/menu/add',
      data
    })
  }
  export const menuDel = (data: any) => {
    return axios({
      method: 'delete',
      url: '/api/menu/del',
      data
    })
  }


  
  export const typeMenuAdd = (data: any) => {
    return axios({
      method: 'post',
      url: '/api/menu/typemenuadd',
      data
    })
  }
  export const alltypeMenuAdd = (data: any) => {
    return axios({
      method: 'post',
      url: '/api/menu/alltypemenuadd',
      data
    })
  }

  export const typeMenuQuery = (params:any) => {
    return axios({
      method: 'get',
      url: '/api/menu/typemenuquery',
      params
    })
  }
